package com.zh.work.entity.channel;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@ApiModel("代付渠道商户实体类")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("pay_merch")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class PayMerchEntity extends Model<PayMerchEntity> {
  private static final long serialVersionUID = -3743332575690831974L;


  @ApiModelProperty(name = "主键", value = "id")
  @TableId(value = "id",type = IdType.AUTO)
  private Long id;
  @ApiModelProperty(value = "逻辑删除字段", name = "deleted")
  @TableLogic
  private Integer deleted;
  @ApiModelProperty(value = "渠道编码", name = "channelCode")
  private String channelCode;
  @ApiModelProperty(value = "渠道名称", name = "channelName")
  @TableField(exist = false)
  private String channelName;
  @ApiModelProperty(value = "渠道商户编号", name = "channelMerchNo")
  @TableField(value = "channel_merchno")
  private String channelMerchNo;
  @ApiModelProperty(value = "渠道商户名称", name = "channelMerchName")
  private String channelMerchName;
  @ApiModelProperty(value = "渠道终端号", name = "termNo")
  @TableField(value = "termno")
  private String termNo;
  @ApiModelProperty(value = "MD5密钥", name = "keyMd5")
  private String keyMd5;
  @ApiModelProperty(value = "RSA密钥", name = "rsaKey")
  private String rsaKey;
  @ApiModelProperty(value = "平台商户号", name = "merchNo")
  @TableField(value = "merchno")
  private String merchNo;
  @ApiModelProperty(value = "状态(1-启用 2-禁用)", name = "status")
  private Integer status;
  @ApiModelProperty(value = "可用余额", name = "availAmount")
  private Float availAmount;
  @ApiModelProperty(value = "垫资额度", name = "quotaAmount")
  private Float quotaAmount;
  @ApiModelProperty(value = "冻结余额", name = "frozenAmount")
  private Float frozenAmount;
  @ApiModelProperty(value = "代付类型 1-余额代付 3-垫资代付", name = "payType")
  private Integer payType;

}
